<?php
/**
 * Created by PhpStorm.
 * User: liu85
 * Date: 2017/10/29
 * Time: 13:21
 */

namespace app\common\helper;


use app\common\utils\MyRedis;

class CacheHelper
{
    protected static $_instance = array();

    public static function getInstance(){
        $key = 'phpredis_';
        if (!isset(self::$_instance[$key])) {
            self::$_instance[$key] = new MyRedis();
        }

        return self::$_instance[$key];
    }
}